package com.elitel.frame.web.serverreqstat.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author m
 */
@Setter
public class ServerAppStat {
    private Integer appCount;
    @Getter
    private List<AppReqInfo> totalList;
    @Getter
    private List<AppReqInfo> dayList;

    public Integer getAppCount() {
        return appCount == null ? 0 : appCount;
    }

    @Setter
    public static class AppReqInfo {
        @Getter
        private String appName;
        private Integer reqCount;

        public Integer getReqCount() {
            return reqCount == null ? 0 : reqCount;
        }
    }
}
